home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
Issue53
/
ccorn
/
Listing6.pas
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1999-12-09
|
234 b
|
10 lines
procedure TMainForm.FormCreate(Sender: TObject);
var
Unk: IUnknown;
begin
if Succeeded(GetActiveObject(CLASS_RegObj, nil, Unk)) and
(Unk <> nil) then
FSrv := Unk as IRegObj
else
FSrv := CoRegObj.Create;
end;